package com.wxzhou.wangzhuan.dto;

import org.eclipse.microprofile.openapi.annotations.media.Schema;

import java.io.Serializable;

/**
 * 登录响应DTO
 */
@Schema(description = "登录响应信息", example = "{\"token\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\",\"userId\":\"user123\",\"username\":\"testuser\",\"nickName\":\"测试用户\"}")
public class LoginResponseDto implements Serializable {

    @Schema(description = "JWT认证令牌", example = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...")
    private String token;
    @Schema(description = "用户ID", example = "user123")
    private Long userId;      // app_user_auth.user_id
    @Schema(description = "昵称", example = "测试用户")
    private String nickName;    // mac_user.user_nick_name
    @Schema(description = "用户等级或角色", example = "1")
    private Integer userLevel;  // mac_group.level

    public LoginResponseDto() {
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(Integer userLevel) {
        this.userLevel = userLevel;
    }
}